package com.wangshuqi.spring.dao;

import com.wangshuqi.spring.entity.User;

import java.util.List;

public interface UserDAO {

    int add(User user);

    int update(User user);

    int deleteById(Integer id);

    User selectById(Integer id);

    List<User> selectByName(String name);

    Integer selectCountByName(String name);

    int[] batchInsert(List<User> userList);

    int[] batchUpdate(List<User> userList);

    int[] batchDelete(List<Integer> idList);
}
